package com.xxd.spring.boot.demo.hexinglei.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.xxd.spring.boot.demo.hexinglei.entity.Grade;
import com.xxd.spring.boot.demo.hexinglei.entity.Teacher;
import com.xxd.spring.boot.demo.hexinglei.exception.MyException;

import java.util.List;
import java.util.Map;

public interface TeacherService {
    int add(Teacher teacher) throws MyException;
    int update(Teacher teacher) throws MyException;
    int delete(Integer id) throws MyException;
    IPage<Teacher> listPage(Page page, Map<String,Object> params) throws MyException;
    List<Teacher> list(Map<String,Object> params) throws MyException;
    Teacher tea(Integer id) throws MyException;
    List<Teacher> all();
}
